package com.zang;

import java.sql.Time;
import java.util.concurrent.TimeUnit;

import static java.lang.Math.pow;

/**
 * @Author: ZVerify
 * @Description: TODO
 * @DateTime: 2022/9/30 9:08
 **/
public class Caring {
    public static void main(String[] args) throws Exception{

        int hx = 0;
        for (float i = 2.5f; i > -2.5f; i-= 0.12f) {

            for (float j = -2.3f; j < 2.3f; j += 0.041f){

                float k = j * j + i * i - 4f;

                if ((pow(k,3)-pow(j,2)*pow(i,3))<-0.00f){

                    String str = "I love you!";
                    int num = hx % str.length();

                    System.out.print("\033[1;31m" + str.charAt(num) + "\033[0m");

                    hx++;
                }else {

                    System.out.print(" ");
                }
            }
            System.out.println("");
            TimeUnit.MILLISECONDS.sleep(300);
        }
    }
}
